﻿<%@ Page Title="" Language="C#" MasterPageFile="~/whatsnew/WhatsNewMasterPage.Master" AutoEventWireup="true" CodeBehind="event.aspx.cs" Inherits="Com.Web.coffinegurunaru.whatsnew._event" %>
<%@ Register TagPrefix="UC" TagName="Paging" Src="~/whatsnew/usercontrol/paging.ascx" %>
<%@ Import Namespace="Com.Library.DB.Event" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="33">&nbsp;</td>
          </tr>
          <tr>
            <td><img src="/images/whatsnew/tit_01.gif" width="457" height="48"></td>
          </tr>
          <tr>
            <td height="30">&nbsp;</td>
          </tr>
          <tr>
            <td align="center"><table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr>
<%	for(int eventIdx=0; eventIdx<(EventList.Count>2?PageSize:2); eventIdx++) { %>
<%		if (eventIdx < EventList.Count) {
			EventEntity entity = EventList[eventIdx];%>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="201" valign="top"><a href="event_view.aspx?eventsn=<%= entity.EventSN %>&pageNo=<%= PageNo %>"><img src="<%= entity.ImageUrl %>" width="186" height="242"></a></td>
                    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td class="big_dark_gray"><a href="event_view.aspx?eventsn=<%= entity.EventSN %>&pageNo=<%= PageNo %>"><%= Server.HtmlEncode(entity.Title) %></a></td>
                      </tr>
                      <tr>
                        <td height="15"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td bgcolor="#e8e8e8"><img src="/images/common/clear.gif" width="1" height="1"></td>
                          </tr>
                        </table></td>
                      </tr>
                      <tr>
                        <td height="25"><span class="small_gray">기간 : <%= entity.EventStart%>&nbsp;~&nbsp;<%= entity.EventEnd %></span></td>
                      </tr>
                      <tr>
                        <td><p><span class="small_gray">
							
                          </span></p></td>
                      </tr>
                    </table></td>
                  </tr>
                </table></td>
<%		} else { %>
                <td width="375"></td>
<%		} %>
<%		if(eventIdx % 2 == 0) { %>
                <td width="25">&nbsp;</td>
<%		} else { %>
              </tr>
              <tr>
                <td height="65">&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
<%		} %>
<%	} %>
              </tr>
            </table>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="25">&nbsp;</td>
                </tr>
                <tr>
                  <td height="35" align="center"><UC:Paging ID="UC_Paging" runat="server" /></td>
                </tr>
              </table></td>
          </tr>
        </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="50">&nbsp;</td>
            </tr>
        </table>
</asp:Content>
